Repository navigation
Build: update WebdriverIO to 10 and the BrowserStack service to 10.0.0 - #16338
patmmccann wants to merge 3 commits into
Conversation
@wdio/browserstack-service 10.0.0 is the first release with a @wdio/cli ^10 peer, so the WebdriverIO stack can move to 10 together: - webdriver, webdriverio, @wdio/cli, @wdio/local-runner, @wdio/mocha-framework and @wdio/spec-reporter to ^10.2.0 - @wdio/browserstack-service to ^10.0.0 - .nvmrc to 24.22.1, the lowest Node 24 that WebdriverIO 10 supports WebdriverIO 10 migration: - autoXvfb is now displayServerEnabled - capability-level exclude is now wdio:exclude - e2e sessions run on WebDriver Classic: switchFrame throws in a BiDi session in v10 - browser.isW3C and switchToFrame are gone, along with the JSON Wire frame-switching workaround in the e2e helpers Closes prebid#15901 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 13b8a6b9f1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "webdriver": "^10.2.0", | ||
| "webdriverio": "^10.2.0", |
There was a problem hiding this comment.
Retain JSON Wire support for the Chrome 50 ES5 job
The BrowserStack-backed test-es5 job still selects browsers-es5.json (.github/workflows/test.yml:168–171), which includes Chrome 50. That image uses the JSON Wire ChromeDriver 2.x dialect handled by the legacy branch deleted from testing-utils.js, but WebdriverIO 10 no longer supports JSON Wire sessions. Setting wdio:enforceWebDriverClassic only disables BiDi; it does not restore legacy-protocol support. Consequently, upstream runs with BrowserStack credentials cannot start the Chrome 50 session, losing the ES5 coverage before any bundle assertions execute. Retain a JSON Wire-capable runner for this lane, or resolve the supported-browser floor before upgrading its client.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
🤖 This comment was written by an AI agent (Claude Code) on behalf of @patmmccann.
Agreed. 68d3f76 drops Chrome 50 from browsers-es5.json: the ES5 job now runs Chrome 75 (the oldest W3C ChromeDriver), Firefox 51 (geckodriver is W3C; it still lacks async/await, ** and object spread, so the old-browser syntax gate stays) and Firefox 65. Separately, the Chrome 50 lane has failed on master since #16314 because of NodeList.prototype.forEach, fixed in #16340.
WebdriverIO 10 only drives W3C sessions, and Chrome 50's ChromeDriver speaks JSON Wire. Chrome 75 is the oldest W3C ChromeDriver; Firefox 51 (geckodriver, W3C) still lacks async/await, ** and object spread, so it keeps an old-browser syntax gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Type of change
Description of change
Closes #15901.
@wdio/browserstack-service10.0.0 (published 2026-11-25) is the first release that supports WebdriverIO 10: its peer range is@wdio/cli ^5 … || ^10, and it depends onwebdriverio ^10and the stable@percy/webdriverio ^3.3.5. That was the blocker on #15901, so this moves the WebdriverIO stack to 10 in one step:@wdio/browserstack-servicewebdriver,webdriverio,@wdio/cli,@wdio/local-runner,@wdio/mocha-framework@wdio/spec-reporterNo v9
@wdio/*package is left in the tree, and@vitest/browser-webdriverio(peerwebdriverio: *) now dedupes onto 10.2.0. Puppeteer was already on 25.16.0; itschromium-bidi157 resolveszod4.6.7, so no Zod 3 is left behind it. No--force,--legacy-peer-depsor overrides were used. Thepackage-lock.jsondiff is large because WebdriverIO 10 drops ~190 transitive packages; every version change in it is in the WebdriverIO dependency tree.Changes for the v10 migration guide:
.nvmrc24.14.1 → 24.22.1. WebdriverIO 10 and the BrowserStack service require Node>=24.22.1on the 24 line.enginesinpackage.jsonis left alone: these are dev dependencies, and consumers of the package do not need them.wdio.shared.conf.js:autoXvfb: false→displayServerEnabled: false(v10 replaces@wdio/xvfbwith one display server for the run).wdio.conf.js: the per-capabilityexclude→wdio:exclude. v10 ignores a bare capabilityexclude, which would have re-enabled the specs excluded for Chrome 50 / Firefox 65.'wdio:enforceWebDriverClassic': trueinwdio.conf.jsandwdio.local.conf.js). In v10switchFramethrows in a BiDi session, and the e2e helpers switch into creative iframes. The Vitest BrowserStack provider already does the same.test/helpers/testing-utils.js:browser.isW3Candbrowser.switchToFrameare removed in v10, and v10 cannot talk to JSON Wire servers at all, so the JSON Wire frame workaround goes.topFrame()now always callsswitchFrame(null): on a Classic session that is what it did for legacy drivers, and the BiDi caveat that made it a no-op no longer applies.Testing
npx gulp lint --nolintfix --files test/helpers/testing-utils.js,wdio.conf.js,wdio.local.conf.js,wdio.shared.conf.js: no errors (thewdio.*.conf.jsfiles are lint-ignored).BROWSER=firefox npx gulp e2e-test-nobuild --local):banner/basic_banner_ad.spec.jspasses, including both "should render GAM creative" tests, which go throughtopFrame()and nestedswitchFrame(). The next worker failed to start a session with a local geckodriver "Session is already started" error, andbail: 1stopped the run. Local Chrome could not start (the installed Chrome is older than the downloaded ChromeDriver 158). The full local e2e matrix (Chrome, Firefox, Edge, Safari) is left to CI.Risk: Chrome 50 in the ES5 E2E job
browsers-es5.jsonruns the ES5 bundle on BrowserStack Chrome 50, which uses a JSON Wire ChromeDriver (2.x). That is theisW3C === falsepath removed above. WebdriverIO 10 is W3C-only, and the guide says a server that answers new-session in the JSON Wire format "cannot start a session". Unless BrowserStack's hub returns a W3C response for that image, Chrome 50 sessions will fail on v10. The oldest Chrome with a W3C ChromeDriver by default is 75. I leftbrowsers-es5.jsonunchanged because the browser floor is a maintainer decision. That job is already failing on master, with Chrome 50 banner failures in run 45620377097.Other information
Upstream: browserstack/wdio-browserstack-service#278 / #369 (WebdriverIO 10 support, released as 10.0.0), percy/percy-webdriverio#1518 (Percy 3.3.5).
🤖 Generated with Claude Code